Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Bump SAM CLI install version for Actions #459

Merged
merged 4 commits into from
Nov 7, 2023

Conversation

lucashuy
Copy link
Contributor

Issue #, if available:
None.

Description of changes:
Bumps the minimum version of Python that is used to install SAM CLI from source in the actions.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@lucashuy lucashuy requested a review from a team as a code owner October 25, 2023 23:10
@lucashuy lucashuy requested review from hnnasit and sidhujus and removed request for a team October 25, 2023 23:10
Copy link
Contributor

@mildaniel mildaniel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for bumping to 3.8 instead of something newer?

@lucashuy
Copy link
Contributor Author

A dynamic import is used somewhere in SAM CLI or one of its deps that is causing issues with newer versions (>=3.10) of Python (ref: aws/aws-sam-cli#6143).

I initially set it as 3.11, but dropped the version to 3.8 for now. We could merge in the other PR, then bump it back to 3.11 here, or we could merge this first, should be an easy enough change in the future to bump it back to 3.11.

@@ -101,15 +101,15 @@ jobs:
type: 'Invoke'
file: 'tests/integration/build_invoke/python/test_python_3_11.py'
env:
PYTHON_VERSION_INSTALL: ${{ matrix.version }}
PYTHON_VERSION_INSTALL: 3.8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this is redundant since we have the same env var defined at the root scope.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thats a good point, will remove this since this was used before to install SAM CLI with the same version that was testing the runtime

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout PR
- uses: ./.github/actions/aws-sam-cli-develop
name: Install develop version of AWS SAM CLI
env:
PYTHON_VERSION_INSTALL: ${{ matrix.version }}
PYTHON_VERSION_INSTALL: 3.8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above. could be redundant

@lucashuy lucashuy requested review from mildaniel and hawflau October 30, 2023 21:28
@moelasmar moelasmar added this pull request to the merge queue Nov 7, 2023
Merged via the queue into aws:master with commit b45af08 Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants